Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip basename() call when finding configs #2514

Merged
merged 6 commits into from
Feb 29, 2024
Merged

Conversation

MichaelChirico
Copy link
Collaborator

@MichaelChirico MichaelChirico commented Jan 22, 2024

Closes #2512. Didn't break any existing tests, so assume it's extraneous as posited.

BTW, I do find it a bit odd that R_LINTR_LINTER_FILE can only be set at the R session level (that env is only read in .onLoad()):

lintr/R/zzz.R

Lines 294 to 296 in bad1632

op_lintr <- list(
lintr.linter_file = Sys.getenv("R_LINTR_LINTER_FILE", ".lintr")
)

Is that WAI? I am not sure the documentation reflects this well, if so:

lintr/R/settings.R

Lines 10 to 11 in bad1632

#' The default linter_file name is `.lintr` but it can be changed with option `lintr.linter_file`
#' or the environment variable `R_LINTR_LINTER_FILE`

Therefore to test that R_LINTR_LINTER_FILE is working under this PR we'd need to invoke a subprocess, that felt like overkill.

@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.55%. Comparing base (901d9ed) to head (38f1b7b).
Report is 2 commits behind head on main.

❗ Current head 38f1b7b differs from pull request most recent head fe456a8. Consider uploading reports for the commit fe456a8 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2514   +/-   ##
=======================================
  Coverage   98.55%   98.55%           
=======================================
  Files         126      126           
  Lines        5762     5762           
=======================================
  Hits         5679     5679           
  Misses         83       83           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

NEWS.md Outdated Show resolved Hide resolved
@MichaelChirico MichaelChirico merged commit 2946bea into main Feb 29, 2024
20 checks passed
@MichaelChirico MichaelChirico deleted the skip-basename branch February 29, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

settings not WAI in package sub-directory?
3 participants